#include <stdio.h>
#include <stdlib.h>
#include <unistd.h>

int send_info()
{
    pid_t child, status;
    if ((child = fork()) < 0) {
        perror("fork");
        return -1;
    }
    if(child == 0){
        execlp("./send_idinfo" , "" , NULL);
        return -1;
    } else {
        	if(wait(&status) < 0) {
            	perror("wait");
            	exit(1);
      	  }
    }
    return status;
}

int main()
{

	while(1)
	{
		send_info();
		sleep(5);	

	}

	return 0;
}
